Fix the scrolledwindow test
authorMatthias Clasen <mclasen@redhat.com>
Wed, 31 Aug 2016 19:04:57 +0000 (15:04 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 31 Aug 2016 19:04:57 +0000 (15:04 -0400)
These tests were written for the propagate-nat-size semantics,
so opt in to it.

testsuite/gtk/scrolledwindow.c

index 317f91313511e560ac2da5ad26cc8d6ac8e8c71b..b62b32393d4fe99fcf201ae925a44f7031c9c17b 100644 (file)
@@ -22,6 +22,8 @@ test_size (GtkOrientation orientation,
   gtk_widget_set_vexpand (box, TRUE);
 
   scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
+  gtk_scrolled_window_set_propagate_natural_width (GTK_SCROLLED_WINDOW (scrolledwindow), TRUE);
+  gtk_scrolled_window_set_propagate_natural_height (GTK_SCROLLED_WINDOW (scrolledwindow), TRUE);
   gtk_container_add (GTK_CONTAINER (scrolledwindow), box);
   gtk_widget_show_all (scrolledwindow);